package test2;

/**
 * @author liule
 * @date 2023/7/21 10:51
 * @Desc : url字符串分割
 */
public class Test4_url字符串分割 {
    public static void main(String[] args) {
        String url = "/zytcft/house/H230711325615/90800/90801/pc_1689748381665_微信图片_20200319160912.jpg";
        String[] split = url.split("/");
        String splitUrl = url.split("/")[1];
        System.out.println("=========");
        System.out.println("分裂截取后：" + splitUrl);
    }
}
